package com.framework.modules.base.service;

import com.baomidou.mybatisplus.service.IService;
import com.framework.common.utils.PageUtils;
import com.framework.modules.base.entity.UserIncomeHistoryEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 公会收益明细表 
 *
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2020-11-08 13:41:01
 */
public interface UserIncomeHistoryService extends IService<UserIncomeHistoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryLiveIncomeHistory(Map<String, Object> params);

    /**
     * 根据uid，获取用户收益
     * @param uid
     * @return
     */
    Map<String,UserIncomeHistoryEntity> getMyIncome(Integer uid);



    /**
     * 收益提现到余额
     * @param type
     * @param uid
     * @return
     */
    Object updateIncome2balance(String type,Long uid);

    /**
     * 余额转金币
     * @param amount
     * @param uid
     * @return
     */
    Object updateBlance2coin(Integer amount, Long uid);

}

